home *** CD-ROM | disk | FTP | other *** search
- # SPECIAL THANKS TO JOHN NAVAS, AIMNET CUSTOMER, FOR SUPPLYING THIS
- # LOGIN SCRIPT!!!
- #
- # LOGIN.CMD - automatic login script for Trumpet Winsock, featuring:
- # * automatic "attack" redialing on failure to connect (e.g., BUSY)
- # or failure to login properly
- # * the ability to automatic try dialing multiple phone numbers in a
- # "rotary" dialing queue
- # * separate dial "prefix" and "suffix" codes (e.g., for traveling
- # and/or credit card dialing)
- # * works with modem initialized with &D1 or &D2
- # Configured for PPP protocol with Aimnet
-
- ### control variables
- $dialcmd = "ATDT" # modem dial command
- $userprompt = "login:" # login prompt
- $passprompt = "assword:" # password prompt
- $protocol = "PPP session" # protocol prompt
- %attempts = 100 # maximum number of dial attempts
- %pause = 2 # seconds between dial attempts
-
- ### setup strings for dialing
- if ![load $modemsetup]
- if [query $modemsetup "Enter your modem setup string (no AT or CR)"]
- save $modemsetup
- end
- end
- if ![load $prefix]
- if [query $prefix "Enter your dial prefix, if any (e.g., '9,')"]
- save $prefix
- end
- end
- if ![load $number]
- if [query $number "Enter your phone number(s), sep. by spaces"]
- save $number
- end
- end
- if ![load $suffix]
- if [query $suffix "Enter your dial suffix, if any (e.g., ',,,,,')"]
- save $suffix
- end
- end
- if ![load $username]
- if [query $username "Enter your login username"]
- save $username
- end
- end
- if ![load $password]
-